{extend name="common/form" /}
{block name="form" /}
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">

            <div class="widget-title am-fl">编辑分类</div>
            <div class="widget-function am-fr">
                <a href="javascript:;" class="am-icon-cog"></a>
            </div>
        </div>
        <div class="widget-body am-fr">
            <form class="am-form tpl-form-line-form">
                <input type="hidden" name="id" value="{$info.id|default=''}">

                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        名字 </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="title" value="{$info.title|default=''}" required="required"
                               class="tpl-form-input" placeholder="请填写名字">
                    </div>
                </div>
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        描述 </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="describe" value="{$info.describe|default=''}" required="required"
                               class="tpl-form-input" placeholder="请填写描述">
                    </div>
                </div>
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        是否开放
                    </label>
                    <div class="am-u-sm-9">
                        <div class="tpl-switch">
                            <input type="checkbox" name="is_open"
                                   class="ios-switch bigswitch tpl-switch-btn am-margin-top-xs" {present name='$info.is_open' }{eq name='$info.is_open' value="1" }checked {/eq} {else /} checked{/present}>
                            <div class="tpl-switch-btn-view">
                                <div></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="am-form-group">
                    <div class="am-u-sm-9 am-u-sm-push-3">
                        <button type="button" onclick="add('{:url("")}','form')" class="am-btn am-btn-primary tpl-btn-bg-color-success">
                        提交
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{extend}
